<script lang="ts" setup>
import { VsLoadingFn } from 'vuesax-alpha'
// import type { LoadingType } from 'vuesax-alpha'
//初始化loading
const loading = VsLoadingFn({
  type: 'scale',
  text: '正在加载中',
})

const nuxtApp = useNuxtApp()

// 是否首次加载
//
// nuxtApp.hook('page:start', () => {
//   isFullLoading.value = true
// })

nuxtApp.hook('page:finish', () => {
  loading.setText('正在进入。。。')
  setTimeout(()=> {
    loading.close()
  },300)
})
</script>
<template>
    <div id="app">
      <NuxtLayout>
        <NuxtPage />
      </NuxtLayout>
    </div>
</template>
<style lang="scss">
@media screen and (max-width: 500px) {
  div.vs-navbar.my-navbar {
    background-color: transparent;
    backdrop-filter: none;
    box-shadow: none;
  }

  .bing-wallpaper {
    .external-weather {
      top: 6vh !important;
    }
  }
}
.page-enter-active,
.page-leave-active {
  transition: all 0.4s;
}
.page-enter-from{
  opacity: 0;
  transform: translateX(100%);
}
.page-leave-to {
  transition: all .3s;
  transform: translateX(-100%);
}
.layout-enter-active,
.layout-leave-active {
  transition: all 0.4s;
}
.layout-enter-from,
.layout-leave-to {
  opacity: 0;
  transform: rotate3d(1, 1, 1, 15deg);
}
</style>